package com.jdiv.samples.particles;


import com.jdiv.JDiv;
import com.jdiv.JProcess;

public class Particle extends JProcess{
	int timeStart=0;
	int timeEnd=10;
	int rand=0;

	public Particle(int graph,int size,int x, int y,int angle){
		this.graph=graph;
		this.x=x;
		this.y=y;
		this.size=size;
		this.angle=angle;
	//	this.alpha=25;
	//	this.blend=BLEND_ADD;
//		 rand=(int) (Math.random()*10)+5;
	}
	
	

	public void begin(){}
	
	public void loop(){
	//	advance(rand);
	
	
		
//		spin=spin+8000;

	 if(timeStart<timeEnd)	advance(10); else status=JDiv.S_KILL;
		
    timeStart++;
   if (alpha>0) alpha-=10;
   
	  
	}

	

}



